package com.listsorter.test;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class StringItem
{

   String value;

   StringItem(String value)
   {
      this.value = value;
   }

   public String sortOrder()
   {
      return this.value;
   }

   public String customOrder()
   {
      return this.value;
   }

   public static List<StringItem> getItemList()
   {
      Random r = new Random();
      List<StringItem> list = new ArrayList<StringItem>();

      StringItem s1 = new StringItem("Adfad");
      StringItem s2 = new StringItem("adfad");
      StringItem s3 = new StringItem("ADDAdfad");
      StringItem s4 = new StringItem("GGGAdfad");
      StringItem s5 = new StringItem("sssaPPPAdfad");
      StringItem s6 = new StringItem("dgBBAdfad");
      StringItem s7 = new StringItem("sssLLAdfad");

      list.add(s1);
      list.add(s2);
      list.add(s3);
      list.add(s4);
      list.add(s5);
      list.add(s6);
      list.add(s7);

      return list;
   }
}
